#ifndef _Star_h_
#define _Star_h_
#include<windows.h>
#include"Sprite.h"
#include"StaticObjects.h"
class CStar
{
	
	int y;
	int sy;
	int xprev;
	int yprev;
	int width;
	int height;
	float vx;
	float vy;
	bool isactive;
	bool moveleft;
	bool bejump;
	bool beauto;
	bool isfalling;
	bool istop;
	bool isover;
	CSprite *star;
	bool isshow;
public:
	int x;
	CStar(int _x,int _y,int _w,int _h);
	~CStar();
	int CollisionWithMario(RECT marioRect);	
	void Move(CStaticObjects *StaticObject,RECT screen);
	void Render(LPD3DXSPRITE sprite,LPDIRECT3DTEXTURE9 image,int time,int xcamara);
};
#endif